import { computed } from 'vue'

export function useFeedbackController(props: any, emits: any) {
  const isShow = computed({
    get() {
      return props.modelValue
    },
    set(value: Boolean) {
      emits('update:modelValue', value)
    }
  })

  const close = () => {
    emits('update:modelValue', false)
  }

  return { isShow, close }
}
